-- GENERATED SPELL FOR [Arcane Wraith] --


function spell0_15273(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(37361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15273', 1000, 1)
end

function Sorts_15273(pUnit, Event)
local choix_sorts_15273 = math.random(0, 0)
if choix_sorts_15273 == 0 then
pUnit:RegisterEvent('spell0_15273', 1, 1)
end
end

function mob15273_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15273', math.random(1500, 3000), 1)
end

function mob15273_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15273_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15273_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15273, 1, 'mob15273_Action')
RegisterUnitEvent(15273, 2, 'mob15273_Leave')
RegisterUnitEvent(15273, 3, 'mob15273_Kill')
RegisterUnitEvent(15273, 4, 'mob15273_Die')
